package cn.xiaoniu.day02.bean;

/**
 * ip数据的封装
 * @author root
 *
 */
public class IpBean {
	private long startIp;
	private long endIp;
	private String province;
	private String city;
	private String optioner;
	
	
	//普通的方法
	public void set(long startIp, long endIp, String province, String city, String optioner) {
		this.startIp = startIp;
		this.endIp = endIp;
		this.province = province;
		this.city = city;
		this.optioner = optioner;
	}
	
	
	public long getStartIp() {
		return startIp;
	}
	public void setStartIp(long startIp) {
		this.startIp = startIp;
	}
	public long getEndIp() {
		return endIp;
	}
	public void setEndIp(long endIp) {
		this.endIp = endIp;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getOptioner() {
		return optioner;
	}
	public void setOptioner(String optioner) {
		this.optioner = optioner;
	}
	@Override
	public String toString() {
		return "IpBean [startIp=" + startIp + ", endIp=" + endIp + ", province=" + province + ", city=" + city
				+ ", optioner=" + optioner + "]";
	}

}
